package com.robot.backend.utils.gameMap.serviceTest;

import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.robot.backend.service.record.recordCRUDService;
@Component
public class test {
    @Autowired
    recordCRUDService recordCRUDService;

    public test(){};
    public static test test;
    @PostConstruct
    public void init(){
        test = this;
    }
    public static void get(int aid, int bid, int abot, int bbot, String loser, int[] asteps,
                           int[] bsteps, int[][] map, int asx, int asy, int bsx, int bsy,int winScore,int loseScore){
        test.recordCRUDService.addRecord(aid,bid,abot,bbot,loser,asteps,bsteps,map,asx,asy,bsx,bsy,winScore,loseScore);
    }

}
